package com.sx.shop.mapper;

import com.sx.shop.entity.Product;

import java.util.List;

public interface ProductMapper
{
    public int addProduct(Product product);

    public int deleteByPid(Integer id);

    public int updateInfo(Product product);

    public List<Product> getAll(String keyword);

    public  Product findById(Integer id);
    public List<Product>findByCategory(Integer id);

    public List<Product> findAll();
}

